package com.example.project_board.mapper;


import com.example.project_board.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select userpassword from user where userid = #{userid}")
    String selectuser(String id);

    @Insert("insert into user(userid,userpassword) values (#{userid},#{userpassword})")

    void insertUser(User user);
}
